import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/login",
    component: () => import("../views/login/LoginIndex.vue"),
  },
  {
    path: "/home",
    component: () => import("../views/home/HomeIndex.vue"),
    children: [
      {
        path: "/home/welcome",
        component: () => import("../views/home/welcome/WelcomeIndex.vue"),
      },
      {
        path: "/home/charts",
        component: () => import("../views/home/charts/ChartsIndex.vue"),
      },
    ],
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
